﻿using System;
using System.Collections.Generic;
using Spring.Transaction.Interceptor;

namespace ShopSpace.Core.Repositories.Impl
{
	internal class WorkItemRepository : RepositoryBase<WorkItem>, IWorkItemRepository
	{
		[Transaction()]
		public override void Update(WorkItem target, string updatedBy)
		{
			if (target.MilestoneWasChanged)
			{
				//do notification;
			}
			if (target.PriorityWasChanged)
			{
				//do notification;
			}
			if (target.StatusWasChanged)
			{
				//do notification;
			}
			base.Update(target, updatedBy);
		}
	}
}